var roleStander = {

    /** @param {Creep} creep **/
    run: function(creep) {
        //var room = Game.rooms['E9S57']
        var room = Game.rooms['E2S59']
        creep.say("PEACE MOVE", true);
        if(!room){
            creep.moveTo(Game.flags['E2S59'].pos, {reusePath:50} );
        }
        else{
            //creep.say('123');
            if (creep.claimController(room.controller) == ERR_NOT_IN_RANGE){
                creep.moveTo(room.controller);
            }
        }
        //console.log(creep.reserveController(room.controller));
        // if (creep.reserveController(room.controller) == ERR_NOT_IN_RANGE){
        //     creep.moveTo(room.controller);
        // }

	}
};

module.exports = roleStander;